package com.homedo.odin.solution.model.dto.search;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.io.Serializable;
import java.util.List;

@JsonIgnoreProperties(ignoreUnknown = true)
public class SearchResponseBean<T> implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = -7207260906744015777L;
    private int total;
    private int time;
    private List<T> docs;
    private boolean searchBySpellcheck;
    private boolean rawKeywordHits;
    private String executedQuery;
    private String searchRank;

    public String getSearchRank() {
        return searchRank;
    }

    public void setSearchRank(String searchRank) {
        this.searchRank = searchRank;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public List<T> getDocs() {
        return docs;
    }

    public void setDocs(List<T> docs) {
        this.docs = docs;
    }

    public boolean isSearchBySpellcheck() {
        return searchBySpellcheck;
    }

    public void setSearchBySpellcheck(boolean searchBySpellcheck) {
        this.searchBySpellcheck = searchBySpellcheck;
    }

    public boolean isRawKeywordHits() {
        return rawKeywordHits;
    }

    public void setRawKeywordHits(boolean rawKeywordHits) {
        this.rawKeywordHits = rawKeywordHits;
    }

    public String getExecutedQuery() {
        return executedQuery;
    }

    public void setExecutedQuery(String executedQuery) {
        this.executedQuery = executedQuery;
    }


}
